package io.file;

import java.io.File;
import java.io.IOException;

public class Test3 {
    public static void main(String[] args) throws IOException {
        File file = new File("E:/学习资料/日语/分级进阶阅读-N5N4N3.pdf");
        System.out.println(file.isDirectory()); // false
        System.out.println(file.isFile()); // true
        System.out.println(file.exists()); // true
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getName());
        System.out.println(file.getCanonicalFile());
    }
}
